package com.flyduck.system.vo.post;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @program: flyduck-platform
 * @description: 系统:职位新增请求VO
 * @author: flyduck
 * @create: 2021-02-05 21:33
 **/
@Data
@ApiModel(value = "系统:职位新增请求VO")
public class SysPostUpdateReqVO implements Serializable {

    @NotBlank(message = "ID不能为空")
    @ApiModelProperty(value = "ID",required = true)
    private String id;

    @NotBlank(message = "职位名称不能为空")
    @ApiModelProperty(value = "职位名称",required = true)
    private String postName;

    @NotBlank(message = "排序不能为空")
    @ApiModelProperty(value = "排序",required = true)
    private String sort;

    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "[/^1$|^2&/]*", message = "状态为：1启用 2禁用")
    @ApiModelProperty(value = "状态",required = true)
    private String status;

}
